//
//  YUNNewViewController.m
//  BaiSi
//
//  Created by warm on 17/7/30.
//  Copyright © 2017年 hp. All rights reserved.
//

#import "YUNNewViewController.h"
#import "YUNTagTableViewController.h"
@interface YUNNewViewController ()

@end

@implementation YUNNewViewController

- (void)viewDidLoad {
    [super viewDidLoad];
   [self setupNavBar];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
#pragma mark - 设置导航条
- (void)setupNavBar
{
    
    // 左边按钮
    // 把UIButton包装成UIBarButtonItem.就导致按钮点击区域扩大
    self.navigationItem.leftBarButtonItem = [UIBarButtonItem itemWithimage:[UIImage imageNamed:@"MainTagSubIcon"] highImage:[UIImage imageNamed:@"MainTagSubIconClick"] target:self action:@selector(tagClick)];
    
    // titleView
    self.navigationItem.titleView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"MainTitle"]];
    
}

#pragma mark - 点击订阅标签调用
- (void)tagClick
{
    
    
    YUNTagTableViewController *SubTag=[[YUNTagTableViewController alloc]init];

    [self.navigationController pushViewController:SubTag animated:YES];
    
}





@end
